package com.software.sqlite.utils;
import cn.hutool.core.io.FileUtil;
import java.io.File;
import java.io.FileFilter;
import java.util.List;

public class VideoScannerUtil {
    public static void main(String[] args) {
        // 设置需要扫描的目录
        File fileDireCtory = new File("C:\\ShipMovie\\manage\\dangjian");
        File[] fileList=fileDireCtory.listFiles();
        if(fileList.length>0){
            for(File file:fileList){
                if(!file.isDirectory()){
                    String extName=FileUtil.extName(file);
                    String mainName=FileUtil.mainName(file);
//                    System.out.println(fileName);
                    System.out.println(extName);
                    System.out.println(mainName);
                    System.out.println(file.getPath());
                }

            }
        }

    }
}